package com.xoa.service.nccloud.impl;

import com.xoa.dao.ncclound.NCCPsnDocMapper;
import com.xoa.model.nccloud.NccPsninfo;
import com.xoa.service.nccloud.INCCPsndocService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class NCCPsndocServiceImpl implements INCCPsndocService {

    @Autowired
    NCCPsnDocMapper psnDocMapper;

    @Override
    public List<NccPsninfo> selectPsn(NccPsninfo psninfo) {
        return psnDocMapper.selectPsn(psninfo);
    }

    @Override
    public void savePsn(NccPsninfo psninfo) {
        psnDocMapper.savePsn(psninfo);
    }

    @Override
    public void updatePsn(NccPsninfo psninfo) {
        psnDocMapper.updatePsn(psninfo);
    }

    @Override
    public void deletePsn(NccPsninfo psninfo) {
        psnDocMapper.deletePsn(psninfo);
    }

    @Override
    public String getPkpsndocByUserId(String userId) {
        return psnDocMapper.getPkPsndocByUserId(userId);
    }
}
